<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/pages/common/taglibs.jsp"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改产品信息</title>
</head>
<body>
<div id="mainDiv" class="x-panel">
<div id="titleDiv" class="x-panel-header"><!--  此处是附页标题  注2 --></div>
<div id="bodyDiv">
<div id="toolbarDiv" class="x-toolbar"><!-- 此处是工具栏    注3--></div>
<div id="panelBodyDiv" class="x-panel-body"><!-- 此处是主体部分    注4-->
<form id="proForm" name="proForm" method="post" target="_self" action="${ctx}/proInfo.do?method=updateProInfo" enctype="multipart/form-data">
<table width="100%" class="datatable">
	<tr>
		<th align="right" width="15%">产品型号：</th>
		<td align="left"><input type="text" size="45"
			name="proModel" id="proModel" value="${proInfo.proModel}"/>
		</td>
	</tr>
	<tr>
		<th align="right" width="15%">产品名称：</th>
		<td align="left"><input type="text" size="45"
			name="proName" id="proName" value="${proInfo.proName}"/></td>
	</tr>
	<tr>
		<th align="right" width="15%">产品图片：</th>
		<td align="left">
		<input type="file" id="file" name="file">
		</td>
	</tr>
		<tr>
		<th align="right" width="15%">产品介绍：</th>
		<td align="left"><textarea rows="6" cols="60" name="proDescribe" id="proDescribe">${proInfo.proDescribe}</textarea>
		
	</tr>
	<tr>
		<th align="right" width="15%">主要功能：</th>
		<td align="left"><textarea rows="6" cols="60" name="proFunction" id="proFunction">${proInfo.proFunction}</textarea>
		
	</tr>
	

	<tr>
		<th align="right" width="15%">是否推荐：</th>
		
		<c:if test="${proInfo.commendFlag eq 1}">
		<td>
			 <input type="radio" name="commendFlag" value="1"checked="checked" />是 
			<input type="radio" name="commendFlag" value="0" />否</td>
		</c:if>
		<c:if test="${proInfo.commendFlag eq 0}">
		<td>
			 <input type="radio" name="commendFlag" value="1" />是 
			<input type="radio" name="commendFlag" value="0" checked="checked"/>否</td>
		</c:if>
	</tr>
	<tr>
		<th align="right" width="15%">产品类型：</th>
		<td align="left"><select name="cId" id="cId">
			<c:if test="${proInfo.proClass.cId!=0}">
				<option value="${proInfo.proClass.cId}" selected>${proInfo.proClass.className}</option>
			</c:if>
			<c:forEach var="proClass" items="${list}">
				<option value="${proClass.cId}">${proClass.className}</option>
			</c:forEach>
		</select></td>
	</tr>
	<tr>
		<th><input type="hidden" name="pId" id="pId" value="${proInfo.pId}"/>
		<input type="hidden" name="image" id="image" value="${proInfo.proImage}">
		</th>
		<td align="center"><input type="submit" value="提交"/>
		&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" />
		</td>
	</tr>
</table>
</form>
</div>
</div>
</div>
</body>
</html>